projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6133d65
)
* src/alloc.c: call only non-null finalizers
author
Aurelien Aptel
<aaptel@suse.com>
Fri, 30 Sep 2016 12:00:51 +0000
(14:00 +0200)
committer
Aurelien Aptel
<aaptel@suse.com>
Fri, 30 Sep 2016 12:03:14 +0000
(14:03 +0200)
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index 41b2f9e77d20ccf0465e463ef4782659cc3f5955..8dae6bffbd9abc031e4f05e9e8a2edb2627f6d69 100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-6907,7
+6907,8
@@
sweep_misc (void)
else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr)
{
struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr;
- uptr->finalizer (uptr->p);
+ if (uptr->finalizer)
+ uptr->finalizer (uptr->p);
}
#endif
/* Set the type of the freed object to Lisp_Misc_Free.